Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set protocol based on rc_keymap #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

prabbit237
Copy link

Ok, to start, I have not really looked into how to do the whole PR thing (so I know this isn't formatted correctly, etc and if there's been an issues section, I'd have posted this in it instead.)

That said, there is a major issue with the current implementation of setting up an IR remote and that is there's no easy way (that I've found) to "set and forget" the protocol. Adding one line to /system/etc/init.d/02remote takes care of that issue.

       if [ -f /boot/rc_keymap ]; then
            /vendor/bin/ir-keytable -c -w /boot/rc_keymap
+++         ir-keytable -p `head -n 1 /boot/rc_keymap|cut -d " " -f 4|tr A-Z a-z`
        fi

The first line of my rc_keymap reads "table sony, type: SONY" so it now sets the protocol to sony at boot. Most of the supplied keymaps have UNKNOWN and for those, this change wouldn't do/affect anything (ir-keytable will simply thor an error message and move on.) Without some method of changing the protocol, it'd be stuck on the rc-6 & licr protocols.

* TODO: update ir-keytable to newer version
* This was originally lifted from v4l-utils around commit
  c9c77f2ffd375266b1d44bb551a90dcd77ea51f3
Change-Id: Ia46582a0a5120308b6f745a588819684a1d651bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants